package com.gastronomy.dao;

import java.util.List;

import com.gastronomy.entity.DishesEntity;

public interface DishesDao {
	/**
	 * 查询用户下的所有菜肴
	 * @param userId
	 * @return
	 */
	public List<DishesEntity> listDishes(Integer userId);

	/**
	 * 保存菜肴
	 * @param dishesEntity
	 */
	public void saveDishesEntity(DishesEntity dishesEntity);

	public DishesEntity queryDishesEntity(Integer dishesId);

	/**
	 * 批量下架美食
	 * @param ids
	 */
	public void underShelfs(String[] ids);

	public List<DishesEntity> listAllDishes();

	public List<DishesEntity> listDishesByVisitCount();

	public List<DishesEntity> listDishesByPrice();

	public List<DishesEntity> listDishesByCreateTime();

	public List<DishesEntity> sortDishesByFocuse(String foodName);
	
	public List<DishesEntity> sortDishesByPrice(String foodName);
	
	public List<DishesEntity> sortDishesByCreateTime(String foodName);
	
	public void updateDishesFocus(DishesEntity dishesEntity);
}
